from . import views
from django.urls import path


app_name='news'
urlpatterns = [
    path('index/', views.index),
    path('indexs/', views.IndexView.as_view(), name='indexs'),
    path('news_list/', views.NewsListView.as_view(), name='news_list'),
    path('news_list/<int:news_id>/',views.News_detail.as_view(),name='news_detail'),
    path('news/banners/',views.BannerView.as_view(),name='banner'),
    path('news/<int:news_id>/comments/', views.CommentsView.as_view(), name='comments'),
    path('search/', views.Search(), name='search'),
]